﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001C9 RID: 457
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeRaid : IMessage<ChallengeRaid>, IMessage, IEquatable<ChallengeRaid>, IDeepCloneable<ChallengeRaid>, IBufferMessage
	{
		// Token: 0x1700060C RID: 1548
		// (get) Token: 0x060014B9 RID: 5305 RVA: 0x0003B2E0 File Offset: 0x000394E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeRaid> Parser
		{
			get
			{
				return ChallengeRaid._parser;
			}
		}

		// Token: 0x1700060D RID: 1549
		// (get) Token: 0x060014BA RID: 5306 RVA: 0x0003B2E7 File Offset: 0x000394E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeRaidReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700060E RID: 1550
		// (get) Token: 0x060014BB RID: 5307 RVA: 0x0003B2F9 File Offset: 0x000394F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeRaid.Descriptor;
			}
		}

		// Token: 0x060014BC RID: 5308 RVA: 0x0003B300 File Offset: 0x00039500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeRaid()
		{
		}

		// Token: 0x060014BD RID: 5309 RVA: 0x0003B308 File Offset: 0x00039508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeRaid(ChallengeRaid other) : this()
		{
			this.maxScore_ = other.maxScore_;
			this.raidId_ = other.raidId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060014BE RID: 5310 RVA: 0x0003B339 File Offset: 0x00039539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeRaid Clone()
		{
			return new ChallengeRaid(this);
		}

		// Token: 0x1700060F RID: 1551
		// (get) Token: 0x060014BF RID: 5311 RVA: 0x0003B341 File Offset: 0x00039541
		// (set) Token: 0x060014C0 RID: 5312 RVA: 0x0003B349 File Offset: 0x00039549
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxScore
		{
			get
			{
				return this.maxScore_;
			}
			set
			{
				this.maxScore_ = value;
			}
		}

		// Token: 0x17000610 RID: 1552
		// (get) Token: 0x060014C1 RID: 5313 RVA: 0x0003B352 File Offset: 0x00039552
		// (set) Token: 0x060014C2 RID: 5314 RVA: 0x0003B35A File Offset: 0x0003955A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x060014C3 RID: 5315 RVA: 0x0003B363 File Offset: 0x00039563
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeRaid);
		}

		// Token: 0x060014C4 RID: 5316 RVA: 0x0003B371 File Offset: 0x00039571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeRaid other)
		{
			return other != null && (other == this || (this.MaxScore == other.MaxScore && this.RaidId == other.RaidId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060014C5 RID: 5317 RVA: 0x0003B3B0 File Offset: 0x000395B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxScore != 0U)
			{
				num ^= this.MaxScore.GetHashCode();
			}
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060014C6 RID: 5318 RVA: 0x0003B408 File Offset: 0x00039608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060014C7 RID: 5319 RVA: 0x0003B410 File Offset: 0x00039610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060014C8 RID: 5320 RVA: 0x0003B41C File Offset: 0x0003961C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MaxScore != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.MaxScore);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060014C9 RID: 5321 RVA: 0x0003B478 File Offset: 0x00039678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxScore);
			}
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060014CA RID: 5322 RVA: 0x0003B4D0 File Offset: 0x000396D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeRaid other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxScore != 0U)
			{
				this.MaxScore = other.MaxScore;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060014CB RID: 5323 RVA: 0x0003B520 File Offset: 0x00039720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060014CC RID: 5324 RVA: 0x0003B52C File Offset: 0x0003972C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RaidId = input.ReadUInt32();
					}
				}
				else
				{
					this.MaxScore = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400088E RID: 2190
		private static readonly MessageParser<ChallengeRaid> _parser = new MessageParser<ChallengeRaid>(() => new ChallengeRaid());

		// Token: 0x0400088F RID: 2191
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000890 RID: 2192
		public const int MaxScoreFieldNumber = 3;

		// Token: 0x04000891 RID: 2193
		private uint maxScore_;

		// Token: 0x04000892 RID: 2194
		public const int RaidIdFieldNumber = 14;

		// Token: 0x04000893 RID: 2195
		private uint raidId_;
	}
}
